package pattern.behavioral.observer.simple;

import java.util.Observable;
import java.util.Observer;

/**
 * @author: chaoyang.ren  
 * @date:Jun 2, 2017  
 * @time:3:14:02 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class Subscriber2 implements Observer {

	public void update(Observable o, Object arg) {
		System.out.println("用户2收到新闻："+arg.toString());
	}

}

